/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

@keyframes message-bg-fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.32;
  }
}

@keyframes message-bg-fadeout {
  0% {
    opacity: 0.32;
  }
  100% {
    opacity: 0;
  }
}

.invite-bubble {
  color: @graphite-dark;
  width: @bubble-width;
  padding: 0;
  z-index: @z-index-bubble;
}

.invite-bubble-inner {
  background-color: #fff;
  border-radius: 4px;
}

.invite-bubble-button {
  .label-bold-xs();
  align-items: center;
  border-top: 1px solid fade(#000, 16%);
  cursor: pointer;
  display: flex;
  height: 56px;
  justify-content: center;
}

.invite-bubble-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.invite-content {
  flex-grow: 1;
  padding: 24px;
}

.invite-header {
  font-size: @font-size-sm;
  font-weight: @font-weight-bold;
  line-height: @line-height-lg;
  margin-bottom: 16px;
}

.invite-link-box {
  font-size: @font-size-xs;
  position: relative;
  display: inline-block;
  width: 100%;
  height: 144px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  line-height: @line-height-sm;

  .bg {
    .full-screen;
    opacity: 0;
  }

  .bg-animation {
    animation-name: message-bg-fadein, message-bg-fadeout;
    animation-duration: @animation-timing-slow;
    animation-timing-function: @ease-out-quart;
  }

  .message {
    .reset-textarea;
    position: relative;
    padding: 8px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
  }
}

.invite-link {
  word-break: break-all;
}

.invite-footer {
  .label-bold-xs();
  color: @graphite;
  text-align: center;
  margin-bottom: 24px;
}
